package team.headnurse.nursemanagement.model;

import team.headnurse.nursemanagement.serializable.StaffTimePk;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * @author Eugene-Forest
 */
@Entity
@Table(name="staff_time")
@IdClass(value = StaffTimePk.class)
public class StaffTime {

  @Id
  private String staffId;

  private String description="";

  @Id
  private int timeId;

  public StaffTime(){}
  public StaffTime(String staffId, int timeId) {
    this.staffId = staffId;
    this.timeId = timeId;
  }

  public StaffTime(String staffId, String description, int timeId) {
    this.staffId = staffId;
    this.description = description;
    this.timeId = timeId;
  }

  public String getStaffId() {
    return staffId;
  }

  public void setStaffId(String staffId) {
    this.staffId = staffId;
  }


  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public int getTimeId() {
    return timeId;
  }

  public void setTimeId(int timeId) {
    this.timeId = timeId;
  }
}
